$def with(scripts = False, css = False, bignav = False, tab = 0, title = '')
$ wrap = 'wrap'
$ nav = ''
$if bignav:
    $ wrap = 'the_wrap'
    $ nav = ' big_nav'
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>$title - 寻宝图_每周出版的旅游特惠评测精选_专业的旅游特惠评测媒体_酒店特惠_机票特惠_旅游团特惠_xunbaotu.com</title>
<link rel="shortcut icon" href="$config.STATIC_PREFIX/images/common/favorite.png" type="image/x-icon"/>
<link href="$config.STATIC_PREFIX/default/css/main.css" rel="stylesheet" type="text/css" charset="utf-8" />
$if css:
    $for c in css:
        <link href="$config.STATIC_PREFIX/$c" rel="stylesheet" type="text/css" charset="utf-8" />
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/libs/jquery.js" charset="utf-8"></script>
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/libs/jquery.tools.min.js" charset="utf-8"></script>
<script type="text/javascript" src="$config.STATIC_PREFIX/scripts/core.js" charset="utf-8"></script>
$if scripts:
    $for script in scripts:
        <script type="text/javascript" src="$config.STATIC_PREFIX/scripts/$script" charset="utf-8"></script>
</head>

<body>
<div id="top">
	<div class="$wrap">
		<div class="wp_logo">
			<h1 class="logo">
				<a href="/" title="去首页">寻宝图发现超值旅游</a>
			</h1>
            <div class="menu">
                <ul>
                    <li><a href="/" title="首页">首页</a></li>
                    <li><a href="/discounts" title="特惠追踪精选">特惠追踪精选</a></li>
                    <li><a href="/subscribe" title="订阅每周特惠追踪精选">免费订阅</a></li>
                    <li><a href="/help/about" title="关于我们">关于我们</a></li>
                </ul>
            </div>
			<div class="logo_r"></div>
		</div>
		<!--wp_logo End-->
		<div class="waterfall_line"></div>
	</div>
	<!--the_wrap End-->
</div>
<!--top End-->
$if request('authed') in ('1', '2'):
    <div class="tip mb_10 mt_10 $wrap">
        <div class="p20">
            $if request('authed') == '1':
                感谢您订阅寻宝图每周特惠追踪精选！想第一时间获知感兴趣的旅游特惠？关注<a href="http://weibo.com/xunbaotu" onclick="_gaq.push(['_trackPageview', '/_trc/go_weibo?source=authed_tip']);" target="_blank">@寻宝图旅游情报</a>&nbsp;<iframe class="middle" width="63" height="24" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" border="0" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&width=63&height=24&uid=2608526213&style=1&btn=red&dpc=1"></iframe>
            $else:
                欢迎回来！
        </div>
    </div>  
$if request('subscribed') == '1':
    <div class="tip mb_10 mt_10 wrap">
        <div class="p20">
        感谢您订阅寻宝图每周特惠追踪精选！在之前的操作中，您已经完成订阅。
        </div>
    </div>
